﻿package net.wangit.jdbc;

import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

public interface Batcher {

	public abstract PreparedStatement prepareQueryStatement(String s,
			boolean flag) throws SQLException, JDBCException;

	public abstract void closeQueryStatement(
			PreparedStatement preparedstatement, ResultSet resultset)
			throws SQLException;

	public abstract PreparedStatement prepareStatement(String s)
			throws SQLException, JDBCException;

	public abstract void closeStatement(PreparedStatement preparedstatement)
			throws SQLException;

	public abstract PreparedStatement prepareBatchStatement(String s)
			throws SQLException, JDBCException;

	public abstract void addToBatch(int i) throws SQLException, JDBCException;

	public abstract void executeBatch() throws JDBCException;

	public abstract void closeStatements();

	public abstract ResultSet getResultSet(PreparedStatement preparedstatement)
			throws SQLException;

	public abstract void abortBatch(SQLException sqlexception);
}
